package com.eyedsion.his.web.entity.businessdata;

import com.eyedsion.his.web.entity.common.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 彭长云
 * @Description:
 * @date 2018/12/28 11:25
 */
@Entity
@Table(name = "ins_op_settl")
public class InsOpSettl extends BaseEntity{
    @Id
    private String code;//PK [CODE, VARCHAR2, 32]
    private String insTransCode;//医保就诊编码 [INS_TRANS_CODE, VARCHAR2, 32]
    private String registerCode;//挂号序号 [REGISTER_CODE, VARCHAR2, 32]
    private String settlementCode;//his结算编码;HIS第一次收费的结算单编码 [SETTLEMENT_CODE, VARCHAR2, 32]
    private String initInsSettlCode;//本地原结算CODE；针对退费情况 [INIT_INS_SETTL_CODE, VARCHAR2, 32]
    private Long insSettlNo;//医保结算单序号;同一个HIS结算单按照先后进行排序写入序号 [INS_SETTL_NO, NUMBER, 2.0]
    private Long itemCount;//明细条数 [ITEM_COUNT, NUMBER, 5.0]
    private BigDecimal costMoney;//费用金额 [COST_MONEY, NUMBER, 16.4]
    private String tstatus;//状态; 1-结算不确定 2-已结算 3-回退不确定 4已回退 [TSTATUS, VARCHAR2, 1]
    private String createUser;//创建人;操作员编码 [CREATE_USER, VARCHAR2, 32]
    private Date createTime;//创建时间;交易日期 [CREATE_TIME, DATE, 7]
    private String createDept;//创建科室;操作科室 [CREATE_DEPT, VARCHAR2, 32]
    private String refundUser;//回退操作员编码 [REFUND_USER, VARCHAR2, 32]
    private String refundDept;//回退科室 [REFUND_DEPT, VARCHAR2, 32]
    private Date refundDate;//回退日期 [REFUND_DATE, DATE, 7]
    private String updateUser;//更新人 [UPDATE_USER, VARCHAR2, 32]
    private String updateDept;//更新科室 [UPDATE_DEPT, VARCHAR2, 32]
    private Date updateTime;//更新时间 [UPDATE_TIME, DATE, 7]
    private String insOutSettlCode;//医保返回结算编码 [INS_OUT_SETTL_CODE, VARCHAR2, 32]
    private String insPatientCode;//保险病人编码;个人编号 [INS_PATIENT_CODE, VARCHAR2, 32]
    private String refundMode;//结算回退方式1正常2异常【手动】 [REFUND_MODE, VARCHAR2, 1]

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getInsTransCode() {
        return insTransCode;
    }

    public void setInsTransCode(String insTransCode) {
        this.insTransCode = insTransCode;
    }

    public String getRegisterCode() {
        return registerCode;
    }

    public void setRegisterCode(String registerCode) {
        this.registerCode = registerCode;
    }

    public String getSettlementCode() {
        return settlementCode;
    }

    public void setSettlementCode(String settlementCode) {
        this.settlementCode = settlementCode;
    }

    public String getInitInsSettlCode() {
        return initInsSettlCode;
    }

    public void setInitInsSettlCode(String initInsSettlCode) {
        this.initInsSettlCode = initInsSettlCode;
    }

    public Long getInsSettlNo() {
        return insSettlNo;
    }

    public void setInsSettlNo(Long insSettlNo) {
        this.insSettlNo = insSettlNo;
    }

    public Long getItemCount() {
        return itemCount;
    }

    public void setItemCount(Long itemCount) {
        this.itemCount = itemCount;
    }

    public BigDecimal getCostMoney() {
        return costMoney;
    }

    public void setCostMoney(BigDecimal costMoney) {
        this.costMoney = costMoney;
    }

    public String getTstatus() {
        return tstatus;
    }

    public void setTstatus(String tstatus) {
        this.tstatus = tstatus;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateDept() {
        return createDept;
    }

    public void setCreateDept(String createDept) {
        this.createDept = createDept;
    }

    public String getRefundUser() {
        return refundUser;
    }

    public void setRefundUser(String refundUser) {
        this.refundUser = refundUser;
    }

    public String getRefundDept() {
        return refundDept;
    }

    public void setRefundDept(String refundDept) {
        this.refundDept = refundDept;
    }

    public Date getRefundDate() {
        return refundDate;
    }

    public void setRefundDate(Date refundDate) {
        this.refundDate = refundDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getUpdateDept() {
        return updateDept;
    }

    public void setUpdateDept(String updateDept) {
        this.updateDept = updateDept;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getInsOutSettlCode() {
        return insOutSettlCode;
    }

    public void setInsOutSettlCode(String insOutSettlCode) {
        this.insOutSettlCode = insOutSettlCode;
    }

    public String getInsPatientCode() {
        return insPatientCode;
    }

    public void setInsPatientCode(String insPatientCode) {
        this.insPatientCode = insPatientCode;
    }

    public String getRefundMode() {
        return refundMode;
    }

    public void setRefundMode(String refundMode) {
        this.refundMode = refundMode;
    }
}
